package org.example.demo4_abstractfactory;

/**
 * @author lemon
 */
public class ConcreteFactory implements AbstactFactory{


    @Override
    public AbstractPurchaseOrder createPurchaseOrder() {
        return new ConcretePurchaseOrder();
    }

    @Override
    public AbstractReceipt createReceipt() {
        return new ConcreteReceipt();
    }

    @Override
    public AbstractAccountsPayable createAccountsPayable() {
        return new ConcreteAccountsPayable();
    }

    @Override
    public AbstractPayment createPayment() {
        return new ConcretePayment();
    }

    @Override
    public AbstractReturnOrder createReturnOrder() {
        return new ConcreteReturnOrder();
    }
}
